package models;


import play.db.jpa.Model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import java.util.List;

/**
 *
 * @author igorov
 */
@Entity(name = "turn")
public class Turn extends Model {
    

    @ManyToOne
    public Event event;
    
    public int position;
    
    public String name;

    @OneToMany(mappedBy = "turn")
    public List<Presentation> presentations;

}
